Skip to content

Reset the noEmitForJsFiles option when updating compiler options - #12570

Merged
Zhengbo Li (zhengbli) merged 4 commits into
microsoft:release-2.1from
zhengbli:resetNoEmitForJsFiles
Nov 30, 2016
Merged

Reset the noEmitForJsFiles option when updating compiler options#12570
Zhengbo Li (zhengbli) merged 4 commits into
microsoft:release-2.1from
zhengbli:resetNoEmitForJsFiles

Conversation

@zhengbli

Copy link
Copy Markdown

No description provided.

Comment thread src/server/project.ts Outdated
this.cachedUnresolvedImportsPerFile.clear();
this.lastCachedUnresolvedImportsList = undefined;
}
if (this.projectKind === ProjectKind.Inferred || this.projectKind === ProjectKind.Configured) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This piece of code is similar to one in constructor - can you share it?

@vladima

Copy link
Copy Markdown
Contributor

Can you add tests?

const diagsAfterUpdate = session.executeCommand(<server.protocol.CompilerOptionsDiagnosticsRequest>{
type: "request",
command: server.CommandNames.CompilerOptionsDiagnosticsFull,
seq: 3,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume the "seq" number should increment with each request. You repeat "3" here (and also in the test below).

Comment thread src/server/project.ts Outdated
this.markAsDirty();
}

setInternalCompilerOptionsForEmittingJsFiles() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private

@billti

Copy link
Copy Markdown
Member

Thanks Zhengbo Li (@zhengbli) . If we put this in the next VS RC, we'll need just this change off of the current commit in the package. Can you create a new branch (e.g. vs/release-2.1) off of commit 5108285 and apply just this change?

@zhengbli

Zhengbo Li (zhengbli) commented Nov 30, 2016

Copy link
Copy Markdown
Author

Sure, working on it.

Edit: one minute, let me do a final round of local testing to be sure no surprise again.

@zhengbli
Zhengbo Li (zhengbli) merged commit dfe45fe into microsoft:release-2.1 Nov 30, 2016
@zhengbli
Zhengbo Li (zhengbli) deleted the resetNoEmitForJsFiles branch November 30, 2016 06:31
@zhengbli

Copy link
Copy Markdown
Author

Bill Ticehurst (@billti) I created https://github.com/Microsoft/TypeScript/tree/vs/release-2.1 that has the changes in this PR. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants